package com.dc.refactoring._6_处理概括关系._6_ExtractSubclass.step4;

public class Test {

    public static void main(String[] args){
        Employee employee = new Employee(10);

        JobItem jobItem2 = new LaborItem(0, employee);
        jobItem2.getTotalPrice();

        // 上面为子类调用
        // ------------------------------------------------------------
        // 下面为父类调用

        JobItem jobItem3 = new JobItem(0, 5);
        jobItem3.getTotalPrice();

    }
}
